<?php
/**
 * 功能：card_user_info
 * 
 * 
 */
class UserInfoAction extends CommonAction {
    public function index(){
        layout('Layout/common'); //布局文件Tpl/Layout/common.html

        $login_id = $this->login_id; //当前登录用户ID
 
        $_info = M('User_info');        
        $where = "uid='{$login_id}'";        
        $user_info = $_info->where($where)->select();
        $info_list = isset($user_info[0]) ? $user_info[0] : array();
        //dump($info_list);
        
        $this->assign('info_list',$info_list);
        $this->display();
    }
}